<if condition="$data['readonly']">
	<input class="hidden" type="text" name="udf_field_{$id}" id="udf_field_{$data.id}" value="{$data.val}" >
	<input disabled="disabled" class="layui-input input-date-time-readonly" type="text" name="udf_field_{$id}" id="disabled_udf_field_{$id}" value="{$val}" >
	<else/>
	<php>
		$str_validate='';
		if(!empty($data['validate'])){
		$str_validate='check="'.$data['validate'].'" info="{'.$data['msg'].'"';
		}
	</php>
	<input class="input-date-time" type="text" name="udf_field_{$data.id}" id="udf_field_{$data.id}" value="{$data.val}" {$str_validate}  readonly="readonly">
</if>